package com.gary.mongo.po;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;

/**
 * @author peng_rui
 * @date 2022/6/1
 */
@Data
@Document(collection = "comment")
public class Comment implements Serializable {
    private static final long serialVersionUID = 4558101017158386032L;
    @MongoId
    private String id;
    @Field("title")
    private String title;
    private String content;

}
